<?php

/**
 * Project: Espolon
 * Licence: BSD License
 * Link: http://espolon.org/
 * Copyright: Nicolas de Bari Embriz Garcia Rojas <nbari at espolon dot org>
 * Author: Nicolas de Bari Embriz Garcia Rojas <nbari at espolon dot org>
 * Version: Beta
 */



/**
 * extend the class and initialize the Smarty environment
 */

class CMS extends Smarty {

  function __construct($cache = false, $cache_lifetime = 300) {
    $this->Smarty();
    $this->template_dir = SMARTY_TEMPLATE_DIR;
    $this->compile_dir = SMARTY_COMPILE_DIR;
    $this->config_dir = SMARTY_CONFIG_DIR;
    $this->cache_dir = SMARTY_CACHE_DIR;
    $this->caching = SMARTY_CACHING;   // $cache
  #  $this->compile_check = SMARTY_CACHING;
    $this->cache_lifetime = SMARTY_CACHE_LIFETIME; // $cache_lifetime
    $this->debugging = SMARTY_DEBUG;
    $this->autoload_filters = array('output' => array('trimwhitespace')); // increase the speed of your site by 10%
  }

}

?>